@Override
public Role saveDetachedRole(Role detachedRole) {
    // 使用merge方法并返回受管实体
    Role managedRole = entityManager.merge(detachedRole);
    return managedRole;
}